<template>
	<view class="">
		<view class="padding-10">
			<u-subsection :list="subsectionList" :current="curNow" @change="sectionChange"></u-subsection>
		</view>
		<view class="my-list">
			<u-list :height="swiperHeight">
				<u-list-item v-for="(item, index) in 20" :key="index">
					<view class="item fsize-26">
						<view class="flex justify-between">
							<view class="fweigh-600">订单号: KITYVGHVGCY-{{index}}</view>
							<view class="">已完成</view>
						</view>
						<view class="flex pt-20 pb-20">
							<image class="width-120 height-120" src="../../static/logo.png" mode=""></image>
							<view class="ml-20">
								<view class="">商品名称</view>
								<view class="">下单时间:2023-02-20 15:24:41</view>
							</view>
						</view>
						<view class="text-align-right">共1件商品 合计:<text>￥598</text></view>
					</view>
				</u-list-item>
			</u-list>
		</view>
		<u-safe-bottom></u-safe-bottom>
	</view>
</template>

<script>
import listHeightMixin from '@/common/computedAltitude.js'
	export default {
		mixins:[listHeightMixin],
		data() {
			return {
				subsectionList: ['全部', '待付款', '使用中', '已用完','已退款','已暂停'],
				curNow: 2,
				orderList:[],
			}
		},
		methods: {
			sectionChange(index) {
				this.curNow = index;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.my-list{
		padding:0 20rpx;
		.item{
			background-color:#fff;
			padding:20rpx;
			border-radius:10rpx;
			margin-bottom: 20rpx;
		}
	}
</style>
